/******************************************************************************/
/* fmem_layer_def.h                                                           */
/******************************************************************************/

#ifndef __FMEM_LAYER_DEF_H
#define __FMEM_LAYER_DEF_H


/********************* Macros & Constants for FMEM ****************************/
#define FMEM_PAGE_SIZE    AT25DF_PAGE_SIZE
#define FMEM_SECTOR_SIZE  AT25DF_SECTOR_SIZE_4
#define FMEM_ALLOC_FLAG   (0xAA55AA55)

/************************** Prototypes & struct for FMEM **********************/
typedef struct
FMEM_DATA
{
    FMEM_DATA() : addr(0), pBuff(0), dataLen(0) {}

    uint32_t addr;
    uint8_t * pBuff;
    uint32_t dataLen;
} __FMEM_DATA;

#endif